package com.tian.hello.ui.topline.model;

import com.tian.hello.ui.topline.base.IViewModel;
import com.tian.hello.ui.topline.base.ItemInfo;
import com.tian.hello.ui.topline.base.ViewHolder;
import com.tian.hello.R;

/**
 * Description:带有图片的viewModel
 * Author：skyTian
 * Time:2018/2/1
 * CopyRight:com,sky
 */
public class ImageModel implements IViewModel<ItemInfo> {

    @Override
    public void onBindView(ViewHolder holder, ItemInfo data) {
        holder.setText(R.id.title_tv, "我是2图片布局");
    }

    @Override
    public int getViewType() {
        return IViewModel.MODEL_IMG;
    }

    @Override
    public int getItemLayout() {
        return R.layout.item_type_img_two;
    }
}
